package week08;

/**
 * Created by cx on 17-11-9.
 */

public class test {
    public static void main(String[] args) {
        Plane plane2=new PlaneImpl();
        Plane plane =new PlaneProxy(plane2);
        plane.takeOff();
//        PlaneFactory planeFactory =new PlaneFactory();
//        PlaneImpl plane =planeFactory.createFactory();
//        PlaneProxy planeProxy =new PlaneProxy(plane);
//        PlaneInAirPort planeInAirPort =new PlaneInAirPort(planeProxy);
//        planeInAirPort.schedule();
    }
}
